<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://www.purecss.cn/css/pure-min.css">
    <link rel="stylesheet" href="https://www.purecss.cn/css/main-grid.css">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.1.min.js"></script>

</head>
<body>
<div id="mse"></div>
<script src="http://cdn.jsdelivr.net/npm/xgplayer/browser/index.js" charset="utf-8"></script>
<script src="http://cdn.jsdelivr.net/npm/xgplayer-hls.js/browser/index.js" charset="utf-8"></script>
<script>
    window.addEventListener('resize',function(){
        document.getElementById('mse').style.height=window.innerHeight+'px';
        document.getElementById('mse').style.width=window.innerWidth-20+'px';
    });

    var player = undefined
    $(document).ready(function(){
        (function ($) {
            $.getUrlParam = function (name) {
                var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
                var r = window.location.search.substr(1).match(reg);
                if (r != null) return unescape(r[2]); return null;
            }
        })(jQuery);

        player = new HlsJsPlayer({
            "id": "mse",
            "playsinline": true,
            "width": window.innerWidth-20,
            "height": window.innerHeight,
            url:'https://pcvideotx.titan.mgtv.com/c1/2021/08/04_0/589D0F4920C4767FC3ECD25FD216C1AF_20210804_1_1_1829_mp4/F47783C65E6FB0F4A15B27479AC339A6.m3u8?arange=0&pm=3Qa5PvjEgQVC_gtFDUOqG5VIQ6SzApl6GHF4dvKkv0MhUpv8nTvEpmYrm6zdJsCUlsaQ6wy2zuXLgUCEkXTprXgrtx2hybaK86BgACNGfnBPKhTBSjGouhrKQH8tkbVZeovaaaZPAo40o2RJXWsxnzgUVjg1bAXx2Yar_LAiSvdAE9G7NOjmaFu5X3ZfreWaJA55Gzx5bc8Piel~hIXU8eLvb23~KyYzzSrwf5XMGLhN4iXtY2wackzlZlQLn64VTH9NBxfWly8uomCADw7ZRC5cbb5Am0GRssDYp9~7XLG~jpZWvf1WIYUjTU027Ro8su_HXpDepOaY60Qu_qSxelpZ0IjrIIp2y9RO0UvwaPqd4sYL6Kx8XKR53Ul5t_jGj3_DSDc_wIfncXOcV0CovqkM6mZWT4vKZbjDm7ACpwRebrSlquYIqBcguKYqDCMwVqlPq0qB6ugMEamM6popoePmjm8lm5nay~PnUQPkqRs-&mr=Buwn1wXaZor6nr7HS7AlMsjS2_fSljBKTlKwNvT2akPlqnBHQLQ5GAZhzw0JU0aO8B0rRmFyfBc-&vcdn=0&scid=25015&cpno=6k14ls&ruid=206ef6229c584928&ld=sdkbytelog02_sdkbytelog02&_t=1628313899939&parwix',
            autoplay: false,
            "playbackRate": [
                0.1,
                1,
                1.5,
                2
            ]
        });

        //
        // player.start(vurl)
        // alert("1")
        // player.reload()
        // alert("2")
        // player.play()
    });

    function start_play(){
        player.pause()
        player.src = vurl2
        player.reload()
        player.play()
    }

</script>
</body>
</html>
